/**
* 执行SQL语句的异步命令.
*/

#ifndef __DBSVR_CMDSQL_H__
#define __DBSVR_CMDSQL_H__

#include "dbdef.h"

class CDBCtrl;
class CCmdSQL: public CTAsyncCmd
{
public:
    CCmdSQL();
    virtual ~CCmdSQL();

    virtual int Do(void* pData);
    virtual int OnAnswer(void* pData);

    CDBCtrl*    m_pstMain;
    CReqSQL     m_stReq;

    CTCodeStream*     m_pstStream;
    CTCodeMySQLResult m_stResult;
};

#endif //__DBSVR_CMDSQL_H__
